<%-- 
    Document   : Jawab Tawaran Haji
    Author     : Faizal.Azlee
--%>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Jawab Tawaran Tunai Haji</title>
     <script type="text/javascript">
            $(document).ready(function(){
                $('form').submit( function () {
                    return formValidation();
            });
            
            var val = ${actionBean.alasantolak};
            doSelect(val);                
            
            function doSelect(val) {
                if (val == 'R') { 
                    $('.lain').show();
                } else {
                    $('.lain').hide();
                }                
            }
           </script>    
    </head>
    <body>
    <s:messages/>
<s:errors/> 
        <br/>
        <s:form beanclass="th.stripes.action.HajiResponseActionBean" class="niceform">
            <fieldset style="border-radius: 10px">
                <legend> <h2 class="h2_word"> 
                        Jawab Tawaran Tunai Haji     
                </h2></legend>
                <p>
                    <label>Nama :</label>
                        ${actionBean.nama}  
                </p>
                <p>
                    <label>No. Akaun TH :</label>
                        ${actionBean.noAkaun}
                </p>
                <p>
                    <label>No. KP Semasa :</label>
                        ${actionBean.noKp}
                </p>
                <p>
                    Anda Telah memilih untuk menolak tawaran ini. Sila isikan maklumat di bawah
                </p>
                <table>
                    <tr>
                        <table>
                            <tr>
                                <td>
                                    <table cellpadding="0" cellspacing="0" style="width: 100%" id="haji">                               
                                            <tr>
                                                <td align="right">
                                                    <label>Alasan menolak tawaran</label>
                                                </td>
                                                <td>:</td>
                                                <td>
                                                    <s:select name="alasantolak" onselect="doSelect(this.value)">
                                                        <s:option value="A">Hamil/Isteri Hamil</s:option>
                                                        <s:option value="B">Kesihatan</s:option>
                                                        <s:option value="C">Kematian</s:option>
                                                        <s:option value="D">Kemalangan</s:option>
                                                        <s:option value="E">Tiada Mahram</s:option>
                                                        <s:option value="R">Lain-lain</s:option>
                                                    </s:select>   
                                                </td>
                                            </tr>
                                            <tr class="lain">
                                                <td align="right">
                                                    <font size="2">Lain-lain(Nyatakan)</font>
                                                </td>
                                                <td>:</td>
                                                <td>
                                                    <s:textarea name="alasanlain"  id="alasanlain"></s:textarea>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <label>Tahun pilihan baru</label>
                                               </td>
                                               <td>:</td>
                                               <td>
                                                   <s:select name="tahunpilihanbaru" class="required" id="tahunpilihanbaru">
                                                       <s:option value="1433">1433</s:option>
                                                       <s:option value="1434">1434</s:option>
                                                       <s:option value="1435">1435</s:option>
                                                   </s:select>
                                                    <span></span>
                                               </td>
                                            </tr>
                                        </table>
                                        <div
                                                 align="center">
                                                <s:button name="showJawabTawaranTunaiHajiDetail" value="Kembali" class="button green"/>
                                                <s:submit name="submitTolakPendaftaran"  value="Hantar" class="button green button_blockUI"/>                                                
                                          </div> 
                                                   
                              </td>
                            </tr>
                        </table>
                    </tr>
                </table> 
            </fieldset>
        </s:form>
    </body>
</html>

